package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data ;

import java.util.List;

@Data
public class Menu {
    @TableId(type = IdType.AUTO)
    private Long mid;
    private String mname;
    private String path;
    private Integer pid;
    private String ioc;
    private Integer lev;
    @TableField(exist = false)  //表示该字段不是数据库表的字段
    private List<Menu> children;
}
